package com.moogene.saad.gameplay.attacter;

import com.moogene.android.InfoMediator;
import com.moogene.android.R;
import com.moogene.android.engine.animlite.Animlite;

import android.graphics.Bitmap;

public class AttAction {
	private final Animlite anim;

	private final int[] moveFrames;

	private final int[] hurtFrames;

	private final int[] dieFrames;

	private AttAction(Bitmap img, int row, int col, int anchorX, int anchorY,
			int[] moveFrames, int[] hurtFrames, int[] dieFrames) {
		Animlite anim = new Animlite(img, row, col,anchorX, anchorY);
//		anim.setAnchor(anchorX, anchorY);
		this.anim = anim;
		this.moveFrames = moveFrames;
		this.hurtFrames = hurtFrames;
		this.dieFrames = dieFrames;
	}

	public static AttAction load(String name){
		AttAction attAction = null;
		if(name.equalsIgnoreCase("actEnemy1")){
			Bitmap img = InfoMediator.getBitmap(R.drawable.enemy1);
			int row = 1;
    		int col = 1;
    		int anchorX = 45;
    		int anchorY = 80;
    		int[] moveFrames = null;
    		int[] hurtFrames = null;
    		int[] dieFrames = null;
    		attAction = new AttAction(img, row, col, anchorX, anchorY, moveFrames, hurtFrames, dieFrames);
		}
		return attAction;
	}

	public void move() {

	}

	public void hurt() {

	}

	public void die() {

	}

	Animlite getAnimlite(){
		return anim;
	}
}
